import request from '@/utils/request'

// 查询客户预付预收列表
export function listCusDebt(query) {
  return request({
    url: '/finance/cusDebt/list',
    method: 'get',
    params: query
  })
}

// 查询客户预付预收详细
export function getCusDebt(id) {
  return request({
    url: '/finance/cusDebt/' + id,
    method: 'get'
  })
}

// 新增客户预付预收
export function addCusDebt(data) {
  return request({
    url: '/finance/cusDebt',
    method: 'post',
    data: data
  })
}

// 修改客户预付预收
export function updateCusDebt(data) {
  return request({
    url: '/finance/cusDebt',
    method: 'put',
    data: data
  })
}

// 删除客户预付预收
export function delCusDebt(id) {
  return request({
    url: '/finance/cusDebt/' + id,
    method: 'delete'
  })
}
